<?php get_header(); ?>
	<div class='container'>
	<div class="sidebar"><?php include (TEMPLATEPATH."/sidebar.php");?></div>
	<div class="content">
	<?php
global $query_string;

$query_args = explode("&", $query_string);
$search_query = array();

foreach($query_args as $key => $string) {
	$query_split = explode("=", $string);
	$search_query[$query_split[0]] = urldecode($query_split[1]);
} // foreach

$search = new WP_Query($search_query);
echo $search->post_count;
?>
<p>You searched for " <?php the_search_query() ?> ". Here are the results:</p>
	
		  <?php if (have_posts()) : ?>
		 <?php while ($search->have_posts()) : $search->the_post(); ?>
		
	
	  <div class="post type-post entry">
                                <h2 class="entry-title" style="font-size: 14px;margin-bottom: 10px">
                                    <a href="<?php echo get_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark">
                                        <?php the_title(); ?>
                                    </a>
                                </h2>
                            <div class="entry-summary">
                                <a href="<?php echo get_permalink()?>" title="<?php the_title();?>">
                                    <?php
                                    if ( has_post_thumbnail() ) {
                                        the_post_thumbnail( 'thumbnail' ,array(200,200));
                                    }
									
                                    ?>
                                </a>
								
                            </div><!-- .entry-summary -->
                        </div>
                      
                        <?php endwhile; ?>

                    <?php endif; ?>
	 </div>
        </div>
<?php get_footer(); ?>